package com.m3839.sdk.common.core;

/**
 * @author ChenBaoyang
 * @description: HykbConstant
 * @date 2021/11/13 10:09
 */
public class Constant {

    /**
     * 好游快爆的包名
     */
    public static final String HYKB_PACKAGE_NAME = "com.xmcy.hykb";
    public static final String HYKB_LOGIN_ACTIVITY = "com.xmcy.hykb.app.ui.mine.AuthorizeUserActivity";

    /**
     * 登录请求的参数key
     */
    public static final String HYKB_KEY_APP_ID = "app_id";
    public static final String HYKB_KEY_GAME_NAME = "app_name";
    public static final String HYKB_KEY_GAME_ICON = "app_icon";
    public static final String HYKB_KEY_SIGN_INFO = "sign_info";
    public static final String HYKB_KEY_USER_INFO_SDK_QUEST = "user_info_sdk_quest";
    public static final String HYKB_VALUE_USER_INFO_SDK_QUEST = "login_from_purchasesdk";


    /**
     * 登录返回的参数key
     */
    public static final String HYKB_KEY_TIME_STAMP = "time_stamp";
    public static final String HYKB_KEY_USER_ID = "user_info_sdk_id";
    public static final String HYKB_KEY_USER_TOKEN = "user_info_sdk_token";
    public static final String HYKB_KEY_USER_LOGIN_TYPE = "user_info_sdk_type";
    public static final String HYKB_KEY_USER_NICK = "user_info_sdk_nick";
    public static final String HYKB_KEY_USER_FAILING_MSG = "user_info_sdk_failmsg";

    /**
     * 定义下登录常见的code，这个对外给游戏开发者的
     */
    public static final int HYKB_CODE_LOGIN_SUCCESS = 100;


    /** 参数游戏ID的key */
    public static final String HYKB_KEY_GAME_ID = "gameId";
    /** 参数充值金额的key */
    public static final String HYKB_KEY_PAY_MONEY = "money";
    /** 参数游戏订单ID的key */
    public static final String HYKB_KEY_PAY_GAME_ORDER = "cpOrderId";
    /** 参数用户名的key */
    public static final String HYKB_KEY_PAY_USER_NAME = "userName";
    /** 参数平台的订单ID的key */
    public static final String HYKB_KEY_PAY_ORDER = "orderId";
    /** 参数平台支付类型的key */
    public static final String HYKB_KEY_PAY_TYPE = "payType";
    /** 参数游戏服的key */
    public static final String HYKB_KEY_PAY_GAME_SERVER = "server";
    /** 参数商品名称的key */
    public static final String HYKB_KEY_PAY_GOODS_NAME = "goodsName";
    /** 参数透传字段的key */
    public static final String HYKB_KEY_PAY_EXT = "ext";

    public static final String HYKB_KEY_CONTENT = "content";
    public static final String HYKB_KEY_VERSION = "version";

    /** 参数时间戳的key */
    public static final String HYKB_KEY_TIME = "time";
    /** 参数签名的key */
    public static final String HYKB_KEY_SIGN = "sign";

    /** 兜底弹窗的本地文案 */
    public static final String NET_ERROR_DIALOG_CONTENT = "检测当前网络异常，为了保证您的游戏体验，请检查后重新进入游戏~";
    /** 兜底弹窗的本地温馨提示 */
    public static final String NET_ERROR_DIALOG_TIPS = "温馨提示：未成年人（未满18周岁）账号，可在周五、周六、周日及法定节假日晚上20点至21点正常进行游戏体验，其他时间无法进入游戏。";
    /** 兜底弹窗的本地按钮文案 */
    public static final String NET_ERROR_DIALOG_BTN_TXT = "退出游戏";


    /** sdk环境-内购 */
    public static final int ENV_PAY = 0;
    /** sdk环境-内购 */
    public static final int ENV_ANTI = 1;

    /**
     * 通用的常量
     */
    public static final String HYKB_KEY_RESPONSE_CODE = "code";
    public static final String HYKB_KEY_RESPONSE_MSG = "msg";
    public static final String HYKB_KEY_RESPONSE_DATA = "data";
    public static final String HYKB_KEY_RESPONSE_RESULT = "result";
    public static final String HYKB_KEY_RESPONSE_FCM = "fcm";
    public static final String HYKB_KEY_RESPONSE_CONTENT = "content";
    public static final String HYKB_KEY_RESPONSE_ACCESS_TOKEN = "access_token";
    public static final String HYKB_KEY_TIP = "tip";
    public static final String HYKB_KEY_RESPONSE_PAY_ORDER = "orderId";
    public static final String HYKB_KEY_RESPONSE_PAY_TYPE = "payType";
    public static final String HYKB_KEY_RESPONSE_PAY_PARAMS = "payParams";
    public static final String HYKB_KEY_RESPONSE_MONEY_NAME = "moneyName";
    public static final String HYKB_KEY_RESPONSE_MONEY_RATE = "moneyRate";
    public static final String HYKB_KEY_RESPONSE_PAY_CHANNELS = "channels";
    public static final String HYKB_KEY_RESPONSE_PAY_RETRIES = "retries";
    public static final String HYKB_KEY_RESPONSE_PAY_CONTACT = "contact";
    public static final String HYKB_KEY_RESPONSE_PAY_MAINTENANCE = "maintenanceContent";
    public static final String HYKB_KEY_RESPONSE_URL = "url";
    public static final String HYKB_KEY_RESPONSE_PARAM = "params";
    public static final String HYKB_KEY_RESPONSE_PAY_TIPS = "tips";

    public static final String HYKB_KEY_RESPONSE_PAY_LIMIT_CONTENT = "content";
    public static final String HYKB_KEY_RESPONSE_PAY_LIMIT_LINK = "link";
    public static final String HYKB_KEY_RESPONSE_PAY_LIMIT_NAME = "name";
    public static final String HYKB_KEY_RESPONSE_PAY_LIMIT_URL = "url";
    public static final String HYKB_KEY_RESPONSE_PAY_LIMIT_ACTION = "action";
    public static final String HYKB_KEY_RESPONSE_PAY_LIMIT_BUTTONS = "buttons";

    /**
     * 事件监听的key
     */
    public static final String HYKB_EVENT_INIT = "event_init";
    public static final String HYKB_EVENT_MAINTENANCE = "event_init_maintenance";
    public static final String HYKB_EVENT_INIT_FAILED = "event_init_failed";
    public static final String HYKB_EVENT_INIT_EXIT_GAME = "event_init_exit_game";
    public static final String HYKB_EVENT_LOGIN_FAILED = "event_login_failed";
    public static final String HYKB_EVENT_LOGIN_BANNED = "event_login_banner";
    public static final String HYKB_EVENT_LOGIN_SUCCESS = "event_login_success";
    public static final String HYKB_EVENT_ANTI_LOAD_OK = "event_anti_load_ok";
    public static final String HYKB_EVENT_ANTI_LOAD_FAILED = "event_anti_load_failed";
    public static final String HYKB_EVENT_ANTI_HEART = "event_anti_heart";
    public static final String HYKB_EVENT_ANTI_COUNT_DOWN = "event_anti_count_down";
    public static final String HYKB_EVENT_ANTI_BEFORE = "event_anti_before";
    public static final String HYKB_EVENT_ANTI_SWITCH_ACCOUNT = "event_anti_switch_account";
    public static final String HYKB_EVENT_ANTI_RESET = "event_anti_reset";
    public static final String HYKB_EVENT_ANTI_STOP = "event_anti_stop";
    public static final String HYKB_EVENT_ANTI_CALLBACK = "event_anti_callback";
    public static final String HYKB_EVENT_PAY_CONFIG = "event_pay_config";
    public static final String HYKB_EVENT_PAY_CONFIG_FAILED = "event_pay_config_failed";
    public static final String HYKB_EVENT_PAY_ORDER = "event_pay_order";
    public static final String HYKB_EVENT_PAY_LIMIT = "event_pay_limit";
    public static final String HYKB_EVENT_PAY_ORDER_FAILED = "event_pay_order_failed";
    public static final String HYKB_EVENT_PAY_ORDER_QUERY = "event_pay_order_query";
    public static final String HYKB_EVENT_PAY_RESET = "event_pay_reset";

    /**
     * 防沉迷和限额的事件常量
     */
    public static final String ACTION_EXIT_GAME = "exit_game";
    public static final String ACTION_WSSFXX = "wssfxx";
    public static final String ACTION_EXIT_POPUP = "exit_popup";

    /**
     * Fragment的tags
     */
    public static final String HYKB_TAG_FRAGMENT_GAME_MAINTENANCE = "com.hykb.sdk:initial.maintenance";
    public static final String HYKB_TAG_FRAGMENT_LOGIN = "com.hykb.sdk:login";
    public static final String HYKB_TAG_FRAGMENT_LOGIN_WEB = "com.hykb.sdk:login.web";
    public static final String HYKB_TAG_FRAGMENT_TIP_BANNED = "com.hykb.sdk:tip.banned";
    public static final String HYKB_TAG_FRAGMENT_ANTI = "com.hykb.sdk:anti";
    public static final String HYKB_TAG_FRAGMENT_ANTI_REAL_NAME = "com.hykb.sdk:real.name.web";
    public static final String HYKB_TAG_FRAGMENT_ANTI_ENT_TIP = "com.hykb.sdk:anti.tip";
    public static final String HYKB_TAG_FRAGMENT_PAY_SUBMIT = "com.hykb.sdk:pay.submit";
    public static final String HYKB_TAG_FRAGMENT_PAY_RESULT = "com.hykb.sdk:pay.result";
    public static final String HYKB_TAG_FRAGMENT_PAY_LIMIT = "com.hykb.sdk:pay.limit";
    public static final String HYKB_TAG_FRAGMENT_PAY_RETRY = "com.hykb.sdk:pay.retry";

    /** 成功 */
    public static final int HYKB_CODE_SUCCESS = 1000;
    /** 游戏维护中*/
    public static final int HYKB_CODE_GAME_MAINTENANCE = 1102;
    /** 用户认证失败 */
    public static final int HYKB_CODE_USER_AUTH_FAILED = 2001;
    /** 你的账号已被封禁 */
    public static final int HYKB_CODE_USER_BANNED = 2002;
    /** 账号被抢登 */
    public static final int HYKB_CODE_USER_ROBBED = 2003;
    /** 充值维护中*/
    public static final int HYKB_CODE_PAY_MAINTENANCE = 2102;
    /** 支付限额 */
    public static final int HYKB_CODE_PAY_LIMIT = 2106;
    /** 充值已关闭 */
    public static final int HYKB_CODE_PAY_CLOSE = 2191;
    /** 未查询到订单状态，这个状态是用来轮询订单状态的判断 */
    public static final int HYKB_CODE_ORDER_NOT_FIND = 2199;

    /**
     * 弹窗常用的固定文案
     */
    public static final String HYKB_STRING_HYKB_APP_DOWNLOAD = "前往下载";
    public static final String HYKB_STRING_HYKB_CLOSE = "关闭";
    public static final String HYKB_STRING_EXIT_GAME = "退出游戏";
    public static final String HYKB_STRING_SWITCH_ACCOUNT = "切换账号";
    public static final String HYKB_STRING_LOGIN_AGAIN = "重新登录";

    /**
     * 关于下载快爆App的提示对话框的按键事件常量定义
     */
    public static final int HYKB_ACTION_TIP_NEGATIVE_EXIT_GAME = 20003;
    public static final int HYKB_ACTION_TIP_POSITIVE_SWITCH_ACCOUNT = 20004;
    public static final int HYKB_ACTION_TIP_POSITIVE_LOGIN_AGAIN = 20005;
    public static final int HYKB_ACTION_TIP_POSITIVE_LOGIN_AGAIN_CLOSE = 20006;


    /** 快爆支持的最低版本 */
    public static final int HYKB_SUPPORT_LOW_VERSION = 237;
}
